package com.course.android.ui.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.baselib.android.view.BaseHolder;
import com.baselib.android.view.BasePlatAdapter;
import com.course.android.R;
import com.course.android.ui.adapter_holder.MenuHolder;
import com.course.controller.TestController;

public class MenuAdapter  extends BasePlatAdapter {

    public MenuAdapter(Context context) {
        super(context);
    }
    @Override
    protected BaseHolder createHolder(View view) {
        return new MenuHolder(view);
    }

    @Override
    protected int layoutId() {
        return R.layout.adapter_menu;
    }


    @Override
    protected void bindData(Object o, BaseHolder baseHolder) {
        TextView textView =  (TextView)baseHolder.view;
        textView.setText(o.toString());
    }
}
